package com.chapter14.set_;

import java.util.HashSet;

/**
 * @author 宋鑫宇
 * @version 1.0
 */
@SuppressWarnings("all")
public class HashSetSource {
    public static void main(String[] args) {
        HashSet hashSet = new HashSet();
        for (int i = 1; i < 64; i++) {
            hashSet.add(i);
        }

        for (int i = 0; i < 12; i++) {
            hashSet.add(new A(i));
        }
        System.out.println(hashSet);
    }
}

class A{
    private int num;

    public A(int num) {
        this.num = num;
    }


    @Override
    public int hashCode() {
        return 100;
    }

}